package com.qfjy.homework.caijirui;

/**
 * 观察者模式测试
 */
public class ObserverPatternDemo {
    public static void main(String[] args) {
        ObservedObject observedObject = new ObservedObject();
        new ObserverA(observedObject);
        new ObserverB(observedObject);
        observedObject.setState(6);
    }
}
